<?php

/**
 * This is the model class for table "web_message".
 *
 * The followings are the available columns in table 'web_message':
 * @property integer $id ID
 * @property string $short_title Short Title
 * @property string $title Title
 * @property string $thumb Thumb
 * @property string $worker_id Worker
 * @property string $create_time Create Time
 * @property integer $uid 用户
 * @property integer $relate_id 回复id
 * @property integer $web_id 所属网站
 * @property string $update_time Update Time
 */
class WebMessage extends ActiveRecord
{
	public $verifyCode;
	/**
	 * Returns the static model of the specified AR class.
	 * @return WebMessage the static model class
	 */
	public static function model($className=__CLASS__) {
		return parent::model($className);
	}
	
	public function getMdcClass() {
		return 'application.models.metadata.WebMessageMetadata';
	}
	
	/**
	 * 返回用户
	 * Enter description here ...
	 */
	public function getMemberObj() {
		$model = new $this->worker_type;
		return $model->findByPk($this->uid);
	}
}